<?php
namespace app\backend\validate;

use think\Validate;

class Lists extends Validate
{

    protected $rule =   [
        'list_title_cn'              => 'require|max:255',
        'list_title_en'              => 'max:255',
    ];

    protected $message  =   [
        'list_title_cn.require'      => '标题格式不正确',
        'list_title_en.require'       => '标题格式不正确',

    ];

    protected $scene = [
        'add' => ['list_title_cn','list_title_en'],
        'edit' => ['list_title_cn','list_title_en']
    ];

}


